package com.chenbei.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenbei.system.domain.SysUser;
import com.chenbei.system.vo.req.SysUserReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 分页查询
     * @param page 分页配置
     * @param sysUserReq 请求条件实例
     * @return Page
     */
    Page<SysUser> pageList(Page<SysUser> page, @Param("whereCondition") SysUserReq sysUserReq);

    /**
     * 查询列表
     * @param sysUserReq 查询实例
     * @return List
     */
    List<SysUser> list(@Param("whereCondition") SysUserReq sysUserReq);
}
